import wsgiref.handlers

from google.appengine.ext import webapp

class MainPage(webapp.RequestHandler):
  # Method gets executed on HTTP GET
  def get(self): 
    self.response.headers['Content-Type'] = 'text/plain'
    self.response.out.write("Hello App Engine !")

def main():
  application = webapp.WSGIApplication(
                                        [('/', MainPage)],
                                        debug=True)
  wsgiref.handlers.CGIHandler().run(application)

if __name__ == "__main__":
  main()
